import { defineStore } from 'pinia'

interface GlobalState {
  access_token: string
  tableHeight: number
}

export const useGlobalStore = defineStore('GlobalState', {
  state: (): GlobalState => {
    return {
      access_token: "",
      tableHeight: window.innerHeight - 170,
    }
  },
  persist: {
    storage: sessionStorage,
  },
})
